//声明 interface 定义请求参数的结构
export interface ReqGetHospitalSetParams {
  page: number;
  limit: number;
  hosname?: string;
  hoscode?: string;
}

//单个的医院设置结构
export interface HospitalSetItem {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {};
  hosname: string;
  hoscode: string;
  apiUrl: string;
  signKey: string;
  contactsName: string;
  contactsPhone: string;
  status: number;
}

//声明医院设置数组类型
export type HospitalSetItems = HospitalSetItem[];

//声明 interface 定义响应结果的结构
export interface ReqGetHospitalSetResponse {
  records: HospitalSetItems;
  total: number; //总数
  size: number; //每页显示的数量
  current: number; //当前页码数
  orders: [];
  hitCount: boolean;
  searchCount: boolean;
  pages: number;
}

//interface 限制新增医院设置的参数结构
export interface ReqAddHospitalSetParams {
  apiUrl: string;
  contactsName: string;
  contactsPhone: string;
  hoscode: string;
  hosname: string;
}

//限制更新医院设置信息的参数结构
export interface ReqUpdateHospitalSetParams extends ReqAddHospitalSetParams {
  id: number;
}
